{{ $categories := site.Data.docs.remap.function_categories }}

{{ range $categories }}
{{ $category := . }}
{{ $funcs := slice }}
{{ range $k, $func := site.Data.docs.remap.functions }}
{{ if eq $func.category $category }}
{{ $funcs = $funcs | append $func }}
{{ end }}
{{ end }}

{{ $text := printf "%s functions" . }}
{{ partial "heading.html" (dict "text" $text "level" 2) }}

{{ partial "data.html" (dict "vrl_functions" $funcs) }}
{{ end }}